﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    EnableEventValidation="false" CodeBehind="AddContract.aspx.cs" Inherits="Client_Revenue.AddContract"
    EnableSessionState="True" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="Styles/datagrid.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .popupControl
        {
            background-color: #EBEBEB;
            border-width: 3px;
            border-style: solid;
            border-color: Gray;
            padding: 3px;
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Client contract entry
    </h2>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>
    <table style="text-align: justify; vertical-align: text-top; padding: 0px; margin: 20px 20px 20px 0px;">
        <tr>
            <td>
                <table style="text-align: justify; vertical-align: text-top; padding: 0px; vertical-align: text-top;">
                    <tr>
                        <td>
                            Client Name&nbsp;&nbsp;
                            <asp:DropDownList ID="ddClient" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ddClient_SelectedIndexChanged" />
                        </td>
                        <td>
                            Date
                            <asp:TextBox ID="txtStartDate" runat="server" Width="75" />
                            Head Count&nbsp;&nbsp;
                            <asp:TextBox ID="txtHeadCount" runat="server" Width="54px" Text="0" 
                                Height="21px" />
                            Estimated Revenue&nbsp;&nbsp;
                            <asp:TextBox ID="txtEstimatedRev" runat="server" Width="75" Text="0.00" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="text-align: justify; vertical-align: text-top; padding: 0px; vertical-align: text-top;">
                    <tr>
                        <td>
                            <h3>
                                Business Lines</h3>
                            <asp:CheckBoxList ID="chlLineOfBiz" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
                                OnSelectedIndexChanged="chlLineOfBiz_SelectedIndexChanged" AutoPostBack="True" />
                            
                            <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" 
                            runat="server" CommitProperty="foreColor"
                                Position="Right" TargetControlID="chlLineOfBiz" PopupControlID="pnlPopup" 
                               OffsetX="2" OffsetY="2" ViewStateMode="Enabled" ></ajaxToolkit:PopupControlExtender> 

                            <asp:Panel ID="pnlPopup" runat="server" CssClass="popupControl">
                                <div>
                                    <div>
                                        <asp:HiddenField ID="HiddenFieldLoB" runat="server" />
                                       </div>
                                       <div> Carrier
                                        <asp:DropDownList ID="ddCarrier" runat="server" />
                                    </div>
                                    <div>
                                        Ins Type
                                        <asp:DropDownList ID="ddInsuType" runat="server">
                                        </asp:DropDownList>
                                    </div>
                                    <div>
                                        Commission
                                        <asp:TextBox ID="txtLoBComm" runat="server" Text="0.00"></asp:TextBox>
                                    </div>
                                    <div class="footer">
                                        <asp:LinkButton ID="BtnSubmit" runat="server" Text="Submit" OnClick="BtnSubmit_Click" />
                                    </div>
                                </div>
                            </asp:Panel>
                           
                        </td>
                    </tr>
                </table>
            </td>
        </tr> <tr>
            <td>
                <table style="text-align: justify; vertical-align: text-top; padding: 0px; vertical-align: text-top;
                    width: 100%" cellspacing="10">
                    <tr>
                        <td>
                            <asp:TextBox ID="txtContractNotes" runat="server" Rows="2" TextMode="MultiLine" Width="541px" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="text-align: justify; vertical-align: text-top; padding: 0px; vertical-align: text-top;
                    width: 100%" cellspacing="10">
                    <tr>
                        <td align="left">
                            <asp:Button ID="btnSave" runat="server" Text="Create Contract" OnClick="btnSave_Click" />
                        </td>
                        <td align="left">
                            <asp:Button ID="btnReset" runat="server" Text="Cancel/Clear" Width="115px" 
                                onclick="btnCancel_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
